import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'index',
      component: () => import('@/views/main/main.vue'),
      redirect: '/hookVue',
      children: [
        {
          path: 'hookVue',
          name: 'hookVue',
          component: () => import('@/views/hookVue/hookVue.vue')
        },
        {
          path: 'chart-demo',
          name: 'chartDemo',
          component: () => import('@/views/chart-demo/chartDemo.vue')
        },
        {
          path: 'report',
          name: 'report',
          component: () => import('@/views/report/report.vue')
        }
      ]
    }
  ]
});

export default router;
